package com.feicheng.controller.main.admin.client;


import com.feicheng.common.result.ResultInfo;
import com.feicheng.service.IFClientService;
import com.feicheng.service.impl.FClientServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-02
 */
@RestController("/main/admin/client/deposit")
@RequestMapping("/main/admin/client/deposit")
public class DepositController {

    @Autowired
    IFClientService fClientService;

    /**
     * 查询每分钟价格
     */
    @GetMapping("/info")
    public ResultInfo getDeposit(){

        return fClientService.getDeposit();
    }

    /**
     * 修改每分钟价格
     */
    @PutMapping("/info")
    public ResultInfo updateDeposit(Integer amount){
        return fClientService.updateDeposit(amount);
    }

}
